package com.bingxue.edu.management.shop.model.resp;

import com.bingxue.edu.management.education.model.resp.ClassNameInfoResp;
import com.bingxue.edu.management.education.model.resp.StudentNameResp;
import com.bingxue.edu.management.shop.model.entity.FinAccount;
import com.bingxue.edu.management.shop.model.entity.Refund;
import com.mybatisflex.annotation.RelationManyToOne;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author panbo
 * @since 2024/11/28
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class RefundRecordListResp extends Refund {

    @RelationManyToOne(selfField = "studentId", targetTable = "edu_student", targetField = "id")
    private StudentNameResp student;

    @RelationManyToOne(selfField = "finAccountId", targetTable = "shop_fin_account", targetField = "id")
    private FinAccount finAccount;

    @RelationManyToOne(selfField = "classId", targetTable = "edu_class_info", targetField = "id")
    private ClassNameInfoResp classInfo;

    @RelationManyToOne(selfField = "createUser", targetTable = "base_employee" , targetField = "id", valueField = "name")
    private String createUserName;
}
